package com.gexin.model.activity;

import com.gexin.model.activity.base.BaseAppStore;
import com.gexin.model.enums.MemberInfoEnum;

import java.util.Date;
import java.util.List;
import java.util.UUID;

/**
 * 业务名称:  t_app_store()
 */
@SuppressWarnings("serial")
public class AppStore extends BaseAppStore<AppStore> {


	public static final AppStore dao = new AppStore();
	public List<AppStore> getAppStore(){
		List<AppStore> memberLevelList = AppStore.dao.find("select * from t_app_store");
		return memberLevelList;
	}
	public static Boolean deleteAppStore(String id){
		return AppStore.dao.deleteById(id);
	}
	public static Boolean insertAppStore(String url, Integer type, String desc) {
		AppStore appStore = new AppStore();
		appStore.setId(UUID.randomUUID().toString());
		appStore.setUrl(url);
		appStore.setType(type);
		appStore.setDesc(desc);
		long time = new Date().getTime();
		appStore.setCreateTime(time);
		appStore.setUpdateTime(time);
		Boolean flag = false;
		flag = appStore.save();
		return flag;
	}
}
